//
//  SendHttpOperation.h
//  FinancialConsultant
//
//  Created by liyun on 12-11-1.
//  Copyright (c) 2012年 liyun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DDXML.h"
#import "NSString+SBJSON.h"
#import "ASIHTTPRequest.h"
#import "ASIFormDataRequest.h"
#import "MacroDefinition.h"
#import "AFHTTPClient.h"
#import "AFHTTPRequestOperation.h"
#import "JSONKit.h"
#import "Protocol.h"

@interface SendHttpOperation : NSObject

@property(nonatomic,assign) id<LoginProtocol> loginDelegate;
@property(nonatomic,assign) id<GetUserInfoProtocol> getUserInfoDelegate;
@property(nonatomic,assign) id<GetWebInfoListProtocol> getWebInfoListDelegate;
@property(nonatomic,assign) id<GetInformationProtocol> getInformationDelegate;
@property(nonatomic,assign) id<GetAttackInfoProtocol> getAttackInfoDelegate;
@property(nonatomic,assign) id<GetOfficalMailProtocol> getOfficalMailDelegate;
@property(nonatomic,assign) id<GetNoReadCountProtocol> getNoReadCountDelegate;
@property(nonatomic,assign) id<SendMailProtocol> sendMailDelegate;
@property(nonatomic,assign) id<AddDraftMailProtocol> addDraftMailDelegate;
@property(nonatomic,assign) id<DelDraftMailProtocol> delDraftMailDelegate;
@property(nonatomic,assign) id<DeleteMailInFlagProtocol> deleteMailInFlagDelegate;
@property(nonatomic,assign) id<GetUserListProtocol> getUserListDelegate;
@property(nonatomic,assign) id<SetMailReadProtocol> setMailReadDelegate;
@property(nonatomic,assign) id<GetStudyGardeProtocol> getStudyGardeDelegate;

+ (SendHttpOperation *)shareSendHttpOperation;

- (void)login:(NSString *)cmdStr
        Useid:(NSString *)userid
          Pwd:(NSString *)pwd;//登录

- (void)getUserInfo:(NSString *)cmdStr
              Useid:(NSString *)userid
                Pwd:(NSString *)pwd;//获取用户信息

- (void)GetWebInfoList:(NSString *)cmdStr
                   Cur:(NSString *)cur
                  Rows:(NSString *)rows;//获取公告列表

- (void)GetInformation:(NSString *)cmdStr
              infoGuid:(NSString *)infoGuid;//获取公告信息

- (void)GetAttachInfo:(NSString *)cmdStr
           CliengGuid:(NSString *)guidStr;//获取公告详情附件

- (void)GetMailList:(NSString *)cmdStr//获取邮箱列表
                Cur:(NSString *)cur
               Rows:(NSString *)rows
        BoxTypeGuid:(NSString *)typeStr
           haveread:(NSString *)hasread
      ownerUserGuid:(NSString *)userGuid;

- (void)GetNoReadCount:(NSString *)cmdStr//获取未读数量
           BoxTypeGuid:(NSString *)boxTypeGuidStr
         ownerUserGuid:(NSString *)ownerUserGuidStr;




- (void)SendMail:(NSString *)cmdStr //发送邮件
        mailGuid:(NSString *)mailGuidStr
    fromUserGuid:(NSString *)fromUserGuidStr
    fromDispName:(NSString *)fromDispNameStrv
  toUserGuidList:(NSString *)toUserGuidListStr
toUserDispNameList:(NSString *)toUserDispNameListStr
         subject:(NSString *)subjectStr
     mailContent:(NSString *)mailContentStr;


- (void)AddDraftMail:(NSString *)cmdStr //加入草稿箱
            mailGuid:(NSString *)mailGuidStr
        fromUserGuid:(NSString *)fromUserGuidStr
        fromDispName:(NSString *)fromDispNameStrv
      toUserGuidList:(NSString *)toUserGuidListStr
  toUserDispNameList:(NSString *)toUserDispNameListStr
             subject:(NSString *)subjectStr
         mailContent:(NSString *)mailContentStr
    originalMailGuid:(NSString *)originalMailGuidStr;

- (void)delDraftMail:(NSString *)cmdStr //删除草稿箱
            mailGuid:(NSString *)mailGuidStr;

- (void)deleteMailInFlag:(NSString *)cmdStr
                mailGuid:(NSString *)mailGuidStr;


- (void)GetUserList:(NSString *)cmdStr;//获取所有联系人


- (void)SetMailRead:(NSString *)cmdStr//设置邮件已读
           mailGuid:(NSString *)mailGuidStr;


- (void)studyGarde:(NSString *)cmdStr//学习园地
               Cur:(NSString *)cur
              Rows:(NSString *)rows;

- (NSDictionary *)login_do:(NSString *)userName
        passWord:(NSString *)password;//待办事宜二次登陆

- (NSDictionary *)WaitHandleBanli:(NSString *)userName;//待办事宜

- (NSDictionary *)Handle_Main:(NSString *)userName//待办事宜展示
   ProcessVersionInstanceGuid:(NSString *)processVersionInstanceGuid
                 WorkItemGuid:(NSString *)workItemGuid
              MessageItemGuid:(NSString *)messageItemGuid;

- (NSDictionary *)CommonOperationHandlePass_SingleTransition_Page:(NSString *)userName//获取事项处理页接口
                                                     WorkItemGuid:(NSString *)workItemGuidStr
                                                    OperationGuid:(NSString *)operationGuidStr
                                                   TransitionGuid:(NSString *)transitionGuidStr;

- (NSDictionary *)CommonOperationHandlePass_SingleTransition:(NSString *)userName//事项处理接口
                                                WorkItemGuid:(NSString *)workItemGuidStr
                                               OperationGuid:(NSString *)operationGuidStr
                                              TransitionGuid:(NSString *)transitionGuidStr
                                                userGuidList:(NSString *)userGuidListStr
                                                userNameList:(NSString *)userNameListStr
                                                     opinion:(NSString *)opinionStr
                                                       toSel:(NSString *)toSelStr
                                              nextTransition:(NSString *)nextTransitionStr;


- (NSMutableArray *)ArchiveList_ToReceive:(NSString *)userName;//待收公文接口

- (NSDictionary *)Archive_Sign_Page:(NSString *)userName//获取待签收公文内容接口
                           sendTime:(NSString *)sendTimeStr
                            SysGuid:(NSString *)sysGuidStr
                           FileType:(NSString *)fileTypeStr
                         OuCertGuid:(NSString *)ouCertGuidStr;

- (NSDictionary *)Archive_Sign:(NSString *)userName//签收公文接口
                      sendTime:(NSString *)sendTimeStr
                       SysGuid:(NSString *)sysGuidStr
                      FileType:(NSString *)fileTypeStr
                    OuCertGuid:(NSString *)ouCertGuidStr
                   jpdFileType:(NSString *)jpdFileTypeStr
                       jpdMiji:(NSString *)jpdMijiStr
                    jpdBaoMiQx:(NSString *)jpdBaoMiQxStr
                      jpdJinji:(NSString *)jpdJinjiStr;



@end



